package category;

import java.util.ArrayList;
import java.util.List;

public class CollectionKnowledge {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
//        list.stream().forEach((i) -> System.out.println(i));
        list.forEach(System.out::println);
    }
}
